[sources/path] Add gitignore-like pattern matching and warn on mismatches
authorBehnam Esfahbod <behnam@zwnj.org>
Fri, 7 Jul 2017 18:52:03 +0000 (12:52 -0600)
committerBehnam Esfahbod <behnam@zwnj.org>
Tue, 18 Jul 2017 06:14:14 +0000 (00:14 -0600)
commitc072ba42425417d62efedaf27e4040de7e263b15
tree91cdf4ddc8b95993b9ea14b4e140eaa54a5e4244
parent13cf358d5b7c3e2b18a3eac1ce892d971081b323
[sources/path] Add gitignore-like pattern matching and warn on mismatches

Add gitignore-like pattern matching logic to `list_files()` and throw
warnings for paths getting different inclusion/exclusion results from
the old and the new methods.

Migration Tracking: <https://github.com/rust-lang/cargo/issues/4268>
Cargo.lock
Cargo.toml
src/cargo/lib.rs
src/cargo/sources/path.rs
src/cargo/util/errors.rs
tests/package.rs